package com.itheima.reggie.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 公共字段类
 * @author Xiao
 * @date 2021/9/26
 */
@Data
public class BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableField(fill = FieldFill.INSERT)
    public LocalDateTime createTime;    //创建时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    public LocalDateTime updateTime;    //更新时间
    @TableField(fill = FieldFill.INSERT)
    public Long createUser;    //创建人
    @TableField(fill = FieldFill.INSERT_UPDATE)
    public Long updateUser;    //修改人
}
